import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/ruoyi";

// 巡查日报  列表
export function DAILYList(data,query) {
  return request({
    url: '/monitors/DAILY/list',
    method: 'post',
    params: query,
    data: data,
    isEncrypt: false
  })
}
// 巡查日报信息详情
export function DAILYInfo(query) {
  return request({
    url: '/monitors/DAILY/info?id=' + query,
    method: 'get',
    // params: query
  })
}

// 巡查日报-新增   
export function DAILYadd(data) {
  return request({
    url: '/monitors/DAILY/add',
    method: 'post',
    data: data,
    isEncrypt: false
  })
}
// 巡查日报-自动生成  
export function DAILYautoGen(data) {
  return request({
    url: '/monitors/DAILY/autoGen?curDate=' + data,
    method: 'post',
    isEncrypt: false
  })
}
// 修改巡查日报
export function DAILYedit(data) {
  return request({
    url: '/monitors/DAILY/edit',
    method: 'post',
    data: data,
    isEncrypt: false
  })
}

// 删除巡查日报
export function DAILYdelete(id) {
  return request({
    url: '/monitors/DAILY/remove?ids=' + id,
    method: 'post',
    isEncrypt: false
  })
}